package com.ybkj.o2o.zhuanxian.mapper;

import com.ybkj.o2o.zhuanxian.entity.OrderRefuse;

import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface OrderRefuseMapper {

  int insert(OrderRefuse record);

  List<OrderRefuse> findByParams(@Param("companyId") Long companyId,
      @Param("orderNo") String orderNo, @Param("employName") String employName,
      @Param("start") Date start, @Param("end") Date end, @Param("limit") Integer limit,
      @Param("rows") Integer rows, @Param("appKey") String appKey);

  Long countByParam(@Param("companyId") Long companyId, @Param("orderNo") String orderNo,
      @Param("employName") String employName, @Param("start") Date start, @Param("end") Date end,
      @Param("appKey") String appKey);

  OrderRefuse findByOrderIdAndAppKey(@Param("id") Long id, @Param("appKey") String appKey);

}
